using Godot;
using System;

public partial class MyButton : Button
{

    public override void _Ready()
    {
        // 动态与信号链接
        // Connect("pressed", new Callable(this,"onButtonPressed"));
        ButtonUp += onButtonPressed;
    }

    public void onButtonPressed()
    {
        GD.Print("button pressed!");
    }
}
